package com.itany.corejava.day02;

import javax.swing.*;
import java.util.Scanner;

public class Test4 {

    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);

        System.out.println("请输入数字：");
        int num=sc.nextInt();

//        String num= JOptionPane.showInputDialog("请输入数字：");

        System.out.println("num = " + num);
        
        String result=num%2!=0?"奇数":"偶数";

        System.out.println("result = " + result);



    }
}
